home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / TCL1 / CTRACE2_ / CLOGPANO.H < prev    next >
Text File  |  1990-12-10  |  1KB  |  39 lines

  1. /*****     
  2.     from CTRACE: A MESSAGE LOGGING CLASS
  3.     by William D. Cramer in Dr. Dobbs Journal #170, p. 44-55, 116-120.
  4. *****/
  5.  
  6. /** CLogPanarama.h -- Definitions for using the LogPanorama class **/
  7. #define _H_CLogPanorama
  8.  
  9. /* System/library headers */
  10. #include <CPanorama.h>        /* definitions for superclass Panorama */
  11. #include <CScrollPane.h>    /* definitions for ScrollPane class */
  12. #include <CWindow.h>        /* definitions for Window class */
  13. #include <oops.h>        /* standard OOP definitions */
  14. #include <Constants.h>        /* miscellaneous look-n-feel paramaters */
  15. #include <Limits.h>        /* numeric extrema */
  16.  
  17. /* Local headers */
  18. #include "CLogList.h"        /* definitions for LogList class */
  19.  
  20. #define LOGPANE_FONT    (monaco)    /* font family of text in the log window */
  21. #define LOGPANE_FONT_SIZE    (9) /* size of text in the log window */
  22. #define LOGPANE_HORZ_SCROLL    (5) /* units per horizontal scroll */
  23. #define LOGPANE_VERT_SCROLL    (1) /* units per vertical scroll */
  24. #define LOGPANE_INSET        (4) /* left margin for start of text */
  25.  
  26. /* Externals referenced */
  27. extern RgnHandle    gUtilRgn;                /* drawing region */
  28.  
  29. struct CLogPanorama : CPanorama
  30. {
  31.     /* local class instance data */
  32.     CLogList    *itsLogList;    /* the buffer for logged data */
  33.     /* local class methods */
  34.     void    ILogPane (short records, CBureaucrat *aSupervisor, CWindow *anEnclosure);
  35.     void    AddString (char *theString);
  36.     /* inherited methods overriden */
  37.     void    Draw (Rect *theRect);
  38. };
  39.